<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="/teambuild/Public/admin/css/common.css" type="text/css" />
        <title>管理区域</title>
        <script>
            window.UEDITOR_HOME_URL = "/teambuild/Public/admin/ueditor/";
            window.onload = function() {
                window.UEDITOR_CONFIG.initialFrameHeight = 300;//编辑器的高度
                window.UEDITOR_CONFIG.maximumWords = 15000;
                UE.getEditor('content');//里面的contents是我的textarea的id值

            }
        </script>
        <script type="text/javascript" charset="utf-8" src="/teambuild/Public/admin/ueditor/ueditor.config.js"></script>
        <script type="text/javascript" charset="utf-8" src="/teambuild/Public/admin/ueditor/ueditor.all.min.js"></script>
        <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
        <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
        <script type="text/javascript" charset="utf-8" src="/teambuild/Public/admin/ueditor/lang/zh-cn/zh-cn.js"></script>
    </head>

    <body>
        <div id="man_zone">
            <form name="editform" method="post" enctype="multipart/form-data" action="<?php echo U('case/doeditcase');?>">
                <input type="hidden" value="<?php echo ($edit["id"]); ?>" name="id" />
                <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
                    <tr>
                        <td width="18%" class="tb_head"><span class="left-title">名称</span></td>
                        <td width="82%" class="tb_headb">&nbsp;内容</td>
                    </tr>
                    <tr>
                        <td width="18%" class="left_title_1"><span class="left-title">异常标题：</span></td>
                        <td width="82%">&nbsp;<input type="text" name="title" value="<?php echo ($edit["title"]); ?>" size="45">&nbsp;&nbsp;* 这里使用中文或者英文作为标题</td>
                    </tr>

                    <tr>
                        <td width="18%" class="left_title_2"><span class="left-title">所属项目：</span></td>
                        <td width="82%">&nbsp;<select name="type">
                                <option value="0">选择项目</option>
                                <?php if(is_array($ctlist)): $i = 0; $__LIST__ = $ctlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value="<?php echo ($list["id"]); ?>" <?php if($edit[type] == $list[id]): ?>selected<?php endif; ?>><?php echo ($list["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>&nbsp;&nbsp;* 选择所属项目</td>
                    </tr>

                    <tr>
                        <td width="18%" class="left_title_1"><span class="left-title">直接显示：</span></td>
                        <td width="82%">&nbsp;<input type="radio" value="y" name="ifshow" <?php if($edit["visible"] == 'y'): ?>checked="checked"<?php endif; ?> /> 是 <input type="radio" value="0" name="ifshow" <?php if($edit["visible"] == 'n'): ?>checked="checked"<?php endif; ?> /> 否
                                    &nbsp;&nbsp;* </td>
                                    </tr>

                                    <tr>
                                        <td width="18%" class="left_title_2"><span class="left-title">摘要：</span></td>
                                        <td width="82%">&nbsp;<textarea rows="3" cols="60" name="abstract"><?php echo ($edit["abstract"]); ?></textarea>&nbsp;<br /><font color="#FF0000">&nbsp;* 文章摘要，默认系统会提取240个字作为摘要，您也可以填写(填写优先)</font></td>
                                    </tr>
                                    <tr>
                                        <td width="18%" class="left_title_1"><span class="left-title">异常内容：</span></td>
                                        <td width="82%"><textarea name="content" id="content" style="width:100%;height:500px;"><?php echo ($edit["content"]); ?></textarea></td>
                                    </tr>

                                    <tr>
                                        <td width="18%" class="left_title_2"><span class="left-title">缩略图：</span></td>
                                        <td width="82%"><input type="file" name="image" value="浏览">&nbsp;&nbsp; <?php if($edit[image] != ''): ?><a href="<?php echo ($edit["image"]); ?>" target="_blank"><font color="#FF0000">当前缩略图</font></a><?php endif; ?>*默认会把文章内的第一幅图片作为缩略图，您也可以上传（优先）</td>
                                    </tr>

                                    <tr>
                                        <td class="left_title_1"></td>
                                        <td>&nbsp;<input type="submit" value="完成提交" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" name="reset" value="重置" /></td>
                                    </tr>

                                    </table>
                                    </form>
                                    </div>
                                    </body>

                                    </html>